package com.xuecheng.framework.domain.course;


import lombok.Data;
import lombok.ToString;
import org.hibernate.annotations.GenericGenerator;


import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 这个类是用来给ElasticSearch存储视频信息索引的中间表
 */
@Data
@ToString
@Entity
@Table(name= "teachplan_media_pub")
@GenericGenerator(name = "jpa-assigned", strategy = "assigned")
public class TeachplanMediaPub implements Serializable {
    @Id
    @GeneratedValue(generator = "jpa-assigned")
    @Column(name= "teachplan_id")
    private String teachplanId;

    @Column(name= "media_id")
    private String mediaId;

    @Column(name= "media_fileoriginalname")
    private String mediaFileOriginalName;

    @Column(name= "media_url")
    private String mediaUrl;

    @Column(name= "course_id")
    private String courseId;

    @Column(name= "timestamp")
    private Date timestamp;//时间戳

}

